package com.voltmaon.shortlink.util;

/**
 * @author qy
 */
public enum ResultCode {

    success("成功",200),
    error("失败",201);

    private String name;
    private Integer code;

    ResultCode (String name , Integer code) {
        this.name = name;
        this.code = code;
    }

    public int value() {
        return this.code;
    }
}